package mhcs.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;

/*
 * This class is the DialogBox that pops up with 10 day warnging.
 * It has a close button with a click listener that hides the popup
 * when the button is clicked.
 */
public class TenDayWarning extends DialogBox {
	
	public TenDayWarning() {
		super(false);
		setText("10 Days have expired, Please recalibrate the milometer.");
		
		Button close = new Button("Close");
		close.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {
				TenDayWarning.this.hide();
			}
			
		});
		setWidget(close);
	}
}
